<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
        <title>ModeleRdPDetails</title>
    </h:head>
    <h:body>
        <f:view>
            <h:form>
                <p:panel id="panel" header="Create/Edit" style="margin-bottom:10px;">
                <h:panelGrid columns="2">
                    <h:outputLabel value="Idm:" for="idm" />
                    <p:inputText id="idm" value="#{modelerdpMBean.details.idm}" title="Idm" required="true" requiredMessage="The Idm field is required."/>
                    <h:outputLabel value="Datec:" for="datec" />
                    <p:inputText id="datec" value="#{modelerdpMBean.details.datec}" title="Datec" required="true" requiredMessage="The Datec field is required.">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </p:inputText>
                    <h:outputLabel value="Matricepre:" for="matricepre" />
                    <p:inputText id="matricepre" value="#{modelerdpMBean.details.matricepre}" title="Matricepre" required="true" requiredMessage="The Matricepre field is required."/>
                    <h:outputLabel value="Matricepost:" for="matricepost" />
                    <p:inputText id="matricepost" value="#{modelerdpMBean.details.matricepost}" title="Matricepost" required="true" requiredMessage="The Matricepost field is required."/>
                    <h:outputLabel value="Login:" for="login" />
                    <h:selectOneMenu id="login" value="#{modelerdpMBean.details.login}" title="Login" required="true" requiredMessage="The Login field is required." 
                            converter="#{modelerdpMBean.loginConverter}" >
                        <!-- TODO: update below reference to list of available items-->
                    <f:selectItems value="#{modelerdpMBean.allLogin}"/>
                    </h:selectOneMenu>
                    <p:commandButton id="back" value="Back" action="#{modelerdpMBean.list}" ajax ="false"/> 
                    <p:commandButton id="update" value="Update" action="#{modelerdpMBean.update}" ajax ="false"/> 
                    
                </h:panelGrid>
                </p:panel>
               
            </h:form>
            
        </f:view>

          
    </h:body>
</html>

